﻿#ifndef MYSOCKET_H
#define MYSOCKET_H

#include <QTcpServer>
#include <QTcpSocket>
#include "mythread.h"


class MySocket : public QTcpServer
{
    Q_OBJECT
public:
    explicit MySocket();
    MySocket(int port);
    ~MySocket();
    QTcpSocket *tcp_send_receive;
signals:
    void ReceiveMsg_peerAddress(QString);
    void show_user_pass(QString ,QString,QString);
private slots:
    void incomingConnection(qintptr handler);
    void resiveMsg(QString,QString,QString);
private:
    MyThread *mys;
};

#endif // MYSOCKET_H
